<template>
  <div class="home">
    <div class="background">
      <div class="bg-gradient"></div>
      <div class="particles"></div>
      <div class="grid-lines"></div>
      <div class="tech-overlay"></div>
      <div class="glow-circle circle-1"></div>
      <div class="glow-circle circle-2"></div>
      <div class="data-lines">
        <div class="data-line line1"></div>
        <div class="data-line line2"></div>
        <div class="data-line line3"></div>
      </div>
      <div class="tech-particles"></div>
    </div>

    <div class="floating-shapes">
      <div class="circle-1"></div>
      <div class="square-1"></div>
      <div class="triangle-1"></div>
      <div class="hexagon-1"></div>
    </div>
    
    <div class="content">
      <div class="header" :class="{ 'show': headerVisible }">
        <div class="logo-container">
          <div class="logo-circle"></div>
          <div class="logo-pulse"></div>
          <div class="logo-inner-circle"></div>
          <div class="logo-rays"></div>
        </div>
        <h1 class="title">AI <span class="highlight">智能助手应用平台</span></h1>
        <p class="subtitle">探索AI的无限可能，体验智能对话的未来</p>
      </div>
      
      <!-- 集成终端风格的启动状态指示器 -->
      <div class="terminal-container" :class="{ 'show': terminalVisible }">
        <div class="terminal-status">
          <div class="terminal-status-line">
            <span class="terminal-id">{{ randomId }}</span>
          </div>
          <div class="loading-status">
            <div class="loading-line" :class="{ 'active': animStage >= 1 }">
              <span class="loading-text">正在初始化 AI 引擎</span>
              <span class="loading-dots"><span>.</span><span>.</span><span>.</span></span>
            </div>
            <div class="loading-line" :class="{ 'active': animStage >= 2 }">
              <span class="loading-text">加载智能助手模型</span>
              <span class="loading-dots"><span>.</span><span>.</span><span>.</span></span>
            </div>
            <div class="loading-line" :class="{ 'active': animStage >= 3 }">
              <span class="loading-text">连接服务器</span>
              <span class="loading-dots"><span>.</span><span>.</span><span>.</span></span>
            </div>
            <div class="loading-line success-line" :class="{ 'active': animStage >= 4 }">
              <span class="success-text">AI 平台启动成功！选择下方应用开始体验</span>
            </div>
          </div>
        </div>
      </div>
      
      <div class="spacer"></div>
      
      <div class="tech-lines" :class="{ 'show': techLinesVisible }">
        <div class="tech-line line-1"></div>
        <div class="tech-line line-2"></div>
      </div>
      
      <div class="app-cards-container" :class="{ 'show': appCardsVisible }">
        <div class="app-cards">
          <div class="app-card" @click="navigateTo('/love-master')">
            <div class="card-glow"></div>
            <div class="card-icon">
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="48" height="48" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
                <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" />
              </svg>
              <div class="icon-glow"></div>
            </div>
            <div class="card-content">
              <h2>AI 恋爱大师</h2>
              <p>与 AI 恋爱大师聊天，获取恋爱建议</p>
            </div>
            <div class="card-hover-effect"></div>
            <div class="card-tech-decoration"></div>
            <div class="card-corner top-left"></div>
            <div class="card-corner top-right"></div>
            <div class="card-corner bottom-left"></div>
            <div class="card-corner bottom-right"></div>
          </div>
          
          <div class="app-card" @click="navigateTo('/super-agent')">
            <div class="card-glow"></div>
            <div class="card-icon">
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="48" height="48" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
                <circle cx="12" cy="12" r="10" />
                <path d="M12 8v8M8 12h8" />
              </svg>
              <div class="icon-glow"></div>
            </div>
            <div class="card-content">
              <h2>AI 超级智能体</h2>
              <p>与 AI 超级智能体聊天，解决各种问题</p>
            </div>
            <div class="card-hover-effect"></div>
            <div class="card-tech-decoration"></div>
            <div class="card-corner top-left"></div>
            <div class="card-corner top-right"></div>
            <div class="card-corner bottom-left"></div>
            <div class="card-corner bottom-right"></div>
          </div>
        </div>
      </div>
      
      <!-- 添加底部空间分隔符 -->
      <div class="bottom-spacer"></div>
      
      <div class="tech-decoration">
        <div class="tech-circle"></div>
        <div class="tech-line"></div>
      </div>
    </div>
    
    <div class="footer">
      <div class="footer-decoration">
        <div class="data-stream"></div>
        <div class="data-stream"></div>
        <div class="data-stream"></div>
      </div>
      <div class="powered-by">
        Powered by Advanced AI Technology
        <div class="tech-pulse"></div>
      </div>
    </div>
    
    <!-- 科技装饰元素 -->
    <div class="corner-decoration top-left"></div>
    <div class="corner-decoration top-right"></div>
    <div class="corner-decoration bottom-left"></div>
    <div class="corner-decoration bottom-right"></div>
  </div>
</template>

<script>
export default {
  name: 'Home',
  data() {
    return {
      randomId: '',
      animStage: 0,
      terminalVisible: false,
      headerVisible: false,
      techLinesVisible: false,
      appCardsVisible: false
    }
  },
  methods: {
    navigateTo(path) {
      this.$router.push(path)
    },
    generateRandomId() {
      const characters = '0123456789ABCDEF'
      let result = ''
      for (let i = 0; i < 18; i++) {
        result += characters.charAt(Math.floor(Math.random() * characters.length))
      }
      return result
    },
    startAnimation() {
      // 首先显示标题
      setTimeout(() => {
        this.headerVisible = true
        
        // 然后显示终端
        setTimeout(() => {
          this.terminalVisible = true
          this.randomId = this.generateRandomId()
          
          // 依次显示加载阶段
          setTimeout(() => {
            this.animStage = 1
            
            setTimeout(() => {
              this.animStage = 2
              
              setTimeout(() => {
                this.animStage = 3
                
                setTimeout(() => {
                  this.animStage = 4
                  
                  // 加载完成后显示装饰线
                  setTimeout(() => {
                    this.techLinesVisible = true
                    
                    // 最后显示应用卡片
                    setTimeout(() => {
                      this.appCardsVisible = true
                    }, 400)
                  }, 600)
                }, 800)
              }, 700)
            }, 700)
          }, 500)
        }, 800)
      }, 300)
    },
    // 创建粒子效果
    createParticles() {
      const particles = document.querySelector('.particles')
      if (!particles) return
      
      const numberOfParticles = 100
      
      for (let i = 0; i < numberOfParticles; i++) {
        const particle = document.createElement('div')
        particle.classList.add('particle')
        
        // 随机位置
        const posX = Math.random() * 100
        const posY = Math.random() * 100
        const size = Math.random() * 5 + 1
        const animDuration = Math.random() * 20 + 10
        const opacity = Math.random() * 0.5 + 0.1
        
        particle.style.left = `${posX}%`
        particle.style.top = `${posY}%`
        particle.style.width = `${size}px`
        particle.style.height = `${size}px`
        particle.style.opacity = opacity
        particle.style.animationDuration = `${animDuration}s`
        
        particles.appendChild(particle)
      }
    },
    // 设置卡片悬停效果
    setupCardHoverEffects() {
      const cards = document.querySelectorAll('.app-card')
      
      cards.forEach(card => {
        card.addEventListener('mouseenter', () => {
          const glow = card.querySelector('.card-glow')
          if (glow) glow.style.opacity = '1'
        })
        
        card.addEventListener('mouseleave', () => {
          const glow = card.querySelector('.card-glow')
          if (glow) glow.style.opacity = '0'
        })
      })
    }
  },
  mounted() {
    this.startAnimation()
    // 等动画完成后再创建粒子效果
    setTimeout(() => {
      this.createParticles()
      this.setupCardHoverEffects()
    }, 4000)
  }
}
</script>

<style scoped>
html, body, #app {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.home {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #e6f1ff;
}

/* 背景效果 */
.background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000c20 0%, #051d40 50%, #0a2d5a 100%);
}

.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 157, 255, 0.05) 1px, transparent 1px),
                   linear-gradient(90deg, rgba(0, 157, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #0088ff, transparent 70%);
  top: -100px;
  right: -50px;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0055aa, transparent 70%);
  bottom: -150px;
  left: -100px;
}

.data-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.data-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(0, 157, 255, 0.2), transparent);
  height: 1px;
  width: 100%;
  transform-origin: left;
  animation: dataline-move 15s infinite linear;
}

.line1 {
  top: 25%;
  animation-delay: 0s;
}

.line2 {
  top: 50%;
  animation-delay: 5s;
}

.line3 {
  top: 75%;
  animation-delay: 10s;
}

@keyframes dataline-move {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.tech-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 角落装饰 */
.corner-decoration {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(0, 157, 255, 0.3);
  z-index: 2;
}

.top-left {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.top-right {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

.bottom-left {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.bottom-right {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

.tech-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('');
  background-size: 300px 300px;
  background-repeat: repeat;
  opacity: 0.15;
  z-index: 0;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.particle {
  position: absolute;
  background-color: #0088ff;
  border-radius: 50%;
  opacity: 0.5;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* 浮动形状 */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.circle-1, .square-1, .triangle-1, .hexagon-1 {
  position: absolute;
  opacity: 0.1;
  border: 2px solid rgba(0, 157, 255, 0.2);
  animation: rotate 20s linear infinite;
}

.circle-1 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: 10%;
  left: 5%;
  border: 2px solid rgba(0, 157, 255, 0.4);
}

.square-1 {
  width: 150px;
  height: 150px;
  right: 10%;
  bottom: 20%;
  transform: rotate(45deg);
  border: 2px solid rgba(0, 157, 255, 0.4);
}

.triangle-1 {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid rgba(0, 157, 255, 0.1);
  top: 40%;
  right: 5%;
}

.hexagon-1 {
  width: 100px;
  height: 57.7px;
  background: rgba(0, 157, 255, 0.1);
  position: absolute;
  top: 70%;
  left: 15%;
}

.hexagon-1:before,
.hexagon-1:after {
  content: "";
  position: absolute;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
}

.hexagon-1:before {
  top: -28.9px;
  border-bottom: 28.9px solid rgba(0, 157, 255, 0.1);
}

.hexagon-1:after {
  bottom: -28.9px;
  border-top: 28.9px solid rgba(0, 157, 255, 0.1);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 内容样式 */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 6rem;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 1s ease, transform 1s ease;
}

.header.show {
  opacity: 1;
  transform: translateY(0);
}

.logo-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.logo-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(45deg, #0088ff, #00a0ff);
  box-shadow: 0 0 30px rgba(0, 136, 255, 0.8);
}

.logo-inner-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00a0ff, #00d4ff);
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.6);
  animation: pulse-inner 3s infinite alternate;
}

@keyframes pulse-inner {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.logo-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  opacity: 0.6;
  animation: rotate 10s linear infinite;
}

.logo-rays::before,
.logo-rays::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0088ff, transparent);
}

.logo-rays::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.logo-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(0, 136, 255, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    width: 70px;
    height: 70px;
    opacity: 1;
  }
  100% {
    width: 120px;
    height: 120px;
    opacity: 0;
  }
}

.title {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 0 15px rgba(0, 136, 255, 0.5);
  letter-spacing: 2px;
}

.highlight {
  background: linear-gradient(to right, #0088ff, #00a0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-top: 1rem;
  text-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}

.tech-lines {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 2px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.tech-lines.show {
  opacity: 1;
  transform: scaleX(1);
}

.tech-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 136, 255, 0.8), transparent);
}

.line-1 {
  width: 80%;
  left: 10%;
}

.line-2 {
  width: 60%;
  left: 20%;
  top: 10px;
  opacity: 0.6;
}

.app-cards-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-bottom: 6rem;
}

.app-cards-container.show {
  opacity: 1;
  transform: translateY(0);
}

.app-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  width: 100%;
  padding-bottom: 2rem;
}

.app-card {
  background: rgba(5, 29, 64, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  width: 280px;
  min-height: 280px;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 157, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  position: relative;
  z-index: 1;
}

.app-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 136, 255, 0.3);
  background: rgba(5, 29, 64, 0.8);
}

.app-card:hover .card-hover-effect {
  opacity: 1;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 136, 255, 0.3) 0%, rgba(0, 136, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.app-card:hover .card-glow {
  opacity: 1;
}

.card-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 157, 255, 0.1) 0%, rgba(0, 157, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.card-tech-decoration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-image: url('');
  opacity: 0.4;
}

.card-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 157, 255, 0.4);
  transition: all 0.3s ease;
}

.card-corner.top-left {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.card-corner.top-right {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
}

.card-corner.bottom-left {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
}

.card-corner.bottom-right {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.app-card:hover .card-corner {
  border-color: rgba(0, 157, 255, 0.8);
  width: 25px;
  height: 25px;
}

.card-icon {
  margin-bottom: 1.5rem;
  color: #00a0ff;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.app-card:hover .card-icon {
  transform: scale(1.1);
  color: #00d4ff;
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 157, 255, 0.3), transparent 70%);
  opacity: 0;
  transition: all 0.3s ease;
}

.app-card:hover .icon-glow {
  opacity: 1;
  width: 70px;
  height: 70px;
}

.card-content {
  text-align: center;
  z-index: 1;
  position: relative;
}

.app-card h2 {
  color: #ffffff;
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
  transition: all 0.3s ease;
}

.app-card:hover h2 {
  color: #00d4ff;
  text-shadow: 0 0 15px rgba(0, 136, 255, 0.5);
}

.app-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.app-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.tech-decoration {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 0;
}

.tech-circle {
  width: 150px;
  height: 150px;
  border: 1px solid rgba(0, 157, 255, 0.2);
  border-radius: 50%;
  position: relative;
}

.tech-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 1px;
  background-color: rgba(0, 157, 255, 0.2);
  transform-origin: left center;
  transform: rotate(45deg);
}

.footer {
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 12, 32, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1;
  position: relative;
  border-top: 1px solid rgba(0, 157, 255, 0.2);
  margin-top: 6rem;
}

.footer-decoration {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
}

.data-stream {
  height: 15px;
  position: relative;
  width: 20%;
}

.data-bit {
  position: absolute;
  left: 0;
  background-color: rgba(0, 136, 255, 0.7);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  animation: stream linear infinite;
}

@keyframes stream {
  0% {
    left: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.powered-by {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.tech-pulse {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 136, 255, 0.8), transparent);
  animation: tech-pulse 2s infinite;
}

@keyframes tech-pulse {
  0% {
    opacity: 0.3;
    transform: translateX(-50%) scaleX(0.7);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
  100% {
    opacity: 0.3;
    transform: translateX(-50%) scaleX(0.7);
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 2.2rem;
  }
  
  .content {
    padding: 2rem 2rem 4rem;
  }
  
  .terminal-container {
    width: 90%;
    margin: 1rem auto 1.5rem;
  }
  
  .loading-status {
    font-size: 12px;
    line-height: 1.6;
    padding: 10px;
  }
  
  .loading-line {
    margin-bottom: 6px;
  }
  
  .success-text {
    font-size: 12px;
  }
  
  .spacer {
    height: 30px;
  }
  
  .app-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 3rem;
  }
  
  .app-card {
    width: 100%;
    max-width: 280px;
    min-height: 260px;
    padding: 1.5rem;
  }
  
  .app-card h2 {
    font-size: 1.3rem;
  }
  
  .app-card p {
    font-size: 0.9rem;
  }
  
  .app-cards-container {
    margin-bottom: 4rem;
  }
  
  .footer {
    margin-top: 4rem;
  }
  
  .bottom-spacer {
    height: 60px;
  }
}

/* 终端风格状态指示器 */
.terminal-container {
  width: 70%;
  max-width: 700px;
  margin: 1rem auto 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.terminal-container.show {
  opacity: 1;
  transform: translateY(0);
}

.terminal-status {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: rgba(5, 20, 40, 0.7);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 157, 255, 0.2);
}

.terminal-status-line {
  background-color: rgba(0, 30, 60, 0.8);
  padding: 8px 12px;
  color: #0af;
  font-family: monospace;
  font-size: 13px;
  border-bottom: 1px solid rgba(0, 157, 255, 0.2);
  display: flex;
  align-items: center;
}

.terminal-id {
  font-family: monospace;
  font-size: 12px;
  color: rgba(0, 157, 255, 0.9);
  letter-spacing: 1px;
}

.loading-status {
  padding: 15px;
  overflow: hidden;
  position: relative;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #e6f1ff;
}

.loading-line {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.loading-line.active {
  opacity: 1;
  transform: translateY(0);
}

.loading-text {
  color: #0af;
  font-weight: 500;
  font-size: 13px;
}

.loading-dots {
  display: inline-block;
  min-width: 25px;
}

.loading-dots span {
  display: inline-block;
  animation: dots-animation 1.5s infinite;
  margin-left: 2px;
  font-size: 15px;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.5s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 1s;
}

.success-line {
  color: #2c9;
}

.success-text {
  color: #2c9;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(39, 201, 63, 0.5);
  font-size: 14px;
}

@keyframes dots-animation {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

/* 添加空间分隔符 */
.spacer {
  width: 100%;
  height: 40px; /* 增加高度以提供更多间距 */
}

/* 在内容区域末尾添加额外的空间分隔符 */
.bottom-spacer {
  width: 100%;
  height: 100px; /* 大幅增加底部额外间距 */
}
</style> 